﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CCF20Model
{
    class MySharedHelp
    {
        public static EnumCustomizedTable ConvertTableNameToEnum(string tableName)
        {
            EnumCustomizedTable customizedTable = EnumCustomizedTable.Unknown;
            if (Enum.IsDefined(typeof(EnumCustomizedTable), tableName))
            {
                customizedTable = (EnumCustomizedTable)Enum.Parse(typeof(EnumCustomizedTable), tableName, true);
            }
            return customizedTable;
        }
    }
}
